<script>
    $(".form_validate").validate();
</script>
<h2><?php echo 'Beneficiario ' . $this->data['Candidate']['1er_nombre'] . " " . $this->data['Candidate']['2do_nombre'] . " " . $this->data['Candidate']['1er_apellido'] . " " . $this->data['Candidate']['2do_apellido'] ?></h2>
<br>
<?php
echo $this->Session->flash();
echo $form->create('CandidateMonitoringActivity');
echo $form->hidden("CandidateMonitoringActivity.id");
echo $form->hidden("CandidateMonitoringActivity.candidate_id");
echo $form->hidden("CandidateMonitoringActivity.monitoring_activity_id");
?>
<table id="tabla">
    <thead>
        <tr>
            <th>Descripción</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>Observación</td>
            <td><?php echo $form->input("CandidateMonitoringActivity.observacion", array('label' => '', 'class' => 'txtarea')); ?></td>
        </tr>
        <tr>
            <td>¿Está explotando el predio?</td>
            <td><?php echo $form->input("CandidateMonitoringActivity.asistio", array('label' => '', 'options' => array('0' => 'No', '1' => 'Si'))); ?></td>
        </tr>
    </tbody>
</table>

<?php
echo $ajax->submit('Guardar', array('url' => array('controller' => 'CandidateMonitoringActivities', 'action' => 'edit', $this->data['CandidateMonitoringActivity']['id']), 'update' => 'content', 'indicator' => 'loading'));
echo $form->end();
?>
<br><br>
<?php
echo $ajax->link($html->image('regresar.gif', array('width' => '30', 'heigth' => '30', 'alt' => 'Regresar', 'title' => 'regresar')), array('controller' => 'CandidateMonitoringActivities', 'action' => 'index', $monitoring_activity_id), array('update' => 'content', 'indicator' => 'loading', 'escape' => false));
?>